home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sys / RCS / ioctl.h,v < prev    next >
Text File  |  1991-12-08  |  16KB  |  535 lines

  1. head     1.11;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.11.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.11
  10. date     91.08.19.22.24.56;  author shirriff;  state Exp;
  11. branches 1.11.1.1;
  12. next     1.10;
  13.  
  14. 1.10
  15. date     91.06.03.17.24.33;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.9;
  18.  
  19. 1.9
  20. date     91.02.25.16.45.58;  author kupfer;  state Exp;
  21. branches ;
  22. next     1.8;
  23.  
  24. 1.8
  25. date     90.07.30.15.18.20;  author mgbaker;  state Exp;
  26. branches ;
  27. next     1.7;
  28.  
  29. 1.7
  30. date     90.06.21.14.52.42;  author mgbaker;  state Exp;
  31. branches ;
  32. next     1.6;
  33.  
  34. 1.6
  35. date     90.02.20.14.56.16;  author shirriff;  state Exp;
  36. branches ;
  37. next     1.5;
  38.  
  39. 1.5
  40. date     90.02.16.14.05.20;  author rab;  state Exp;
  41. branches ;
  42. next     1.4;
  43.  
  44. 1.4
  45. date     90.01.04.13.57.52;  author nelson;  state Exp;
  46. branches ;
  47. next     1.3;
  48.  
  49. 1.3
  50. date     88.07.29.19.05.33;  author ouster;  state Exp;
  51. branches ;
  52. next     1.2;
  53.  
  54. 1.2
  55. date     88.06.29.14.48.01;  author ouster;  state Exp;
  56. branches ;
  57. next     1.1;
  58.  
  59. 1.1
  60. date     88.06.21.16.12.52;  author ouster;  state Exp;
  61. branches ;
  62. next     ;
  63.  
  64. 1.11.1.1
  65. date     91.12.08.15.13.14;  author kupfer;  state Exp;
  66. branches ;
  67. next     ;
  68.  
  69.  
  70. desc
  71. @@
  72.  
  73.  
  74. 1.11
  75. log
  76. @Added TCGETP ioctl.
  77. @
  78. text
  79. @/*
  80.  * Copyright (c) 1982, 1986 Regents of the University of California.
  81.  * All rights reserved.  The Berkeley software License Agreement
  82.  * specifies the terms and conditions for redistribution.
  83.  *
  84.  *    @@(#)ioctl.h    7.6 (Berkeley) 12/18/87
  85.  * $Header: /sprite/src/lib/include/sys/RCS/ioctl.h,v 1.10 91/06/03 17:24:33 kupfer Exp Locker: shirriff $
  86.  */
  87.  
  88. #ifndef    _IOCTL
  89. #define    _IOCTL
  90.  
  91. #ifndef _TTYCHARS
  92. #include <sys/ttychars.h>
  93. #endif
  94. #ifndef TTYDEV
  95. #include <sys/ttydev.h>
  96. #endif
  97.  
  98. #ifndef _FBDEV
  99. #include <sys/fb.h>
  100. #endif
  101.  
  102. #include <cfuncproto.h>
  103.  
  104. /*
  105.  * Ioctl definitions
  106.  */
  107.  
  108. struct tchars {
  109.     char    t_intrc;    /* interrupt */
  110.     char    t_quitc;    /* quit */
  111.     char    t_startc;    /* start output */
  112.     char    t_stopc;    /* stop output */
  113.     char    t_eofc;        /* end-of-file */
  114.     char    t_brkc;        /* input delimiter (like nl) */
  115. };
  116. struct ltchars {
  117.     char    t_suspc;    /* stop process signal */
  118.     char    t_dsuspc;    /* delayed stop process signal */
  119.     char    t_rprntc;    /* reprint line */
  120.     char    t_flushc;    /* flush output (toggles) */
  121.     char    t_werasc;    /* word erase */
  122.     char    t_lnextc;    /* literal next character */
  123. };
  124.  
  125. /*
  126.  * Structure for TIOCGETP and TIOCSETP ioctls.
  127.  */
  128.  
  129. #ifndef _SGTTYB_
  130. #define    _SGTTYB_
  131. struct sgttyb {
  132.     char    sg_ispeed;        /* input speed */
  133.     char    sg_ospeed;        /* output speed */
  134.     char    sg_erase;        /* erase character */
  135.     char    sg_kill;        /* kill character */
  136.     short    sg_flags;        /* mode flags */
  137. };
  138. #endif
  139.  
  140. /*
  141.  * Window/terminal size structure.
  142.  * This information is stored by the kernel
  143.  * in order to provide a consistent interface,
  144.  * but is not used by the kernel.
  145.  *
  146.  * Type must be "unsigned short" so that types.h not required.
  147.  */
  148. struct winsize {
  149.     unsigned short    ws_row;            /* rows, in characters */
  150.     unsigned short    ws_col;            /* columns, in characters */
  151.     unsigned short    ws_xpixel;        /* horizontal size, pixels */
  152.     unsigned short    ws_ypixel;        /* vertical size, pixels */
  153. };
  154.  
  155. /*
  156.  * Pun for SUN.
  157.  */
  158. struct ttysize {
  159.     unsigned short    ts_lines;
  160.     unsigned short    ts_cols;
  161.     unsigned short    ts_xxx;
  162.     unsigned short    ts_yyy;
  163. };
  164. #define    TIOCGSIZE    TIOCGWINSZ
  165. #define    TIOCSSIZE    TIOCSWINSZ
  166.  
  167. #ifndef _IO
  168. /*
  169.  * Ioctl's have the command encoded in the lower word,
  170.  * and the size of any in or out parameters in the upper
  171.  * word.  The high 3 bits of the upper word are used
  172.  * to encode the in/out status of the parameter.
  173.  */
  174. #define    IOCPARM_MASK    0x1fff        /* parameter length, at most 13 bits */
  175. #define    IOCPARM_LEN(x)    (((x) >> 16) & IOCPARM_MASK)
  176. #define    IOCPARM_MAX    NBPG        /* max size of ioctl, mult. of NBPG */
  177. #define    IOC_VOID    0x20000000    /* no parameters */
  178. #define    IOC_OUT        0x40000000    /* copy out parameters */
  179. #define    IOC_IN        0x80000000    /* copy in parameters */
  180. #define    IOC_INOUT    (IOC_IN|IOC_OUT)
  181. #define    IOC_DIRMASK    0xe0000000    /* mask for IN/OUT/VOID */
  182. /* the 0x20000000 is so we can distinguish new ioctl's from old */
  183. #define    _IO(x,y)    ((int) (IOC_VOID|(x<<8)|y))
  184. #define    _IOR(x,y,t)    ((int) (IOC_OUT|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y))
  185. #define    _IOW(x,y,t)    ((int) (IOC_IN|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y))
  186. /* this should be _IORW, but stdio got there first */
  187. #define    _IOWR(x,y,t)    ((int) (IOC_INOUT|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y))
  188. #endif
  189.  
  190. /*
  191.  * tty ioctl commands
  192.  */
  193. #define    TIOCGETD    _IOR('t', 0, int)        /* get line discipline */
  194. #define    TIOCSETD    _IOW('t', 1, int)        /* set line discipline */
  195. #define    TIOCHPCL    _IO('t', 2)        /* hang up on last close */
  196. #define    TIOCMODG    _IOR('t', 3, int)        /* get modem control state */
  197. #define    TIOCMODS    _IOW('t', 4, int)        /* set modem control state */
  198. #define        TIOCM_LE    0001        /* line enable */
  199. #define        TIOCM_DTR    0002        /* data terminal ready */
  200. #define        TIOCM_RTS    0004        /* request to send */
  201. #define        TIOCM_ST    0010        /* secondary transmit */
  202. #define        TIOCM_SR    0020        /* secondary receive */
  203. #define        TIOCM_CTS    0040        /* clear to send */
  204. #define        TIOCM_CAR    0100        /* carrier detect */
  205. #define        TIOCM_CD    TIOCM_CAR
  206. #define        TIOCM_RNG    0200        /* ring */
  207. #define        TIOCM_RI    TIOCM_RNG
  208. #define        TIOCM_DSR    0400        /* data set ready */
  209. #define    TIOCGETP    _IOR('t', 8,struct sgttyb)/* get parameters -- gtty */
  210. #define    TIOCSETP    _IOW('t', 9,struct sgttyb)/* set parameters -- stty */
  211. #define    TIOCSETN    _IOW('t',10,struct sgttyb)/* as above, but no flushtty */
  212. #define    TIOCEXCL    _IO('t', 13)        /* set exclusive use of tty */
  213. #define    TIOCNXCL    _IO('t', 14)        /* reset exclusive use of tty */
  214. #define    TIOCFLUSH    _IOW('t', 16, int)    /* flush buffers */
  215. #define    TIOCSETC    _IOW('t',17,struct tchars)/* set special characters */
  216. #define    TIOCGETC    _IOR('t',18,struct tchars)/* get special characters */
  217. #define        TANDEM        0x00000001    /* send stopc on out q full */
  218. #define        CBREAK        0x00000002    /* half-cooked mode */
  219. #define        LCASE        0x00000004    /* simulate lower case */
  220. #define        ECHO        0x00000008    /* echo input */
  221. #define        CRMOD        0x00000010    /* map \r to \r\n on output */
  222. #define        RAW        0x00000020    /* no i/o processing */
  223. #define        ODDP        0x00000040    /* get/send odd parity */
  224. #define        EVENP        0x00000080    /* get/send even parity */
  225. #define        ANYP        0x000000c0    /* get any parity/send none */
  226. #define        NLDELAY        0x00000300    /* \n delay */
  227. #define            NL0    0x00000000
  228. #define            NL1    0x00000100    /* tty 37 */
  229. #define            NL2    0x00000200    /* vt05 */
  230. #define            NL3    0x00000300
  231. #define        TBDELAY        0x00000c00    /* horizontal tab delay */
  232. #define            TAB0    0x00000000
  233. #define            TAB1    0x00000400    /* tty 37 */
  234. #define            TAB2    0x00000800
  235. #define        XTABS        0x00000c00    /* expand tabs on output */
  236. #define        CRDELAY        0x00003000    /* \r delay */
  237. #define            CR0    0x00000000
  238. #define            CR1    0x00001000    /* tn 300 */
  239. #define            CR2    0x00002000    /* tty 37 */
  240. #define            CR3    0x00003000    /* concept 100 */
  241. #define        VTDELAY        0x00004000    /* vertical tab delay */
  242. #define            FF0    0x00000000
  243. #define            FF1    0x00004000    /* tty 37 */
  244. #define        BSDELAY        0x00008000    /* \b delay */
  245. #define            BS0    0x00000000
  246. #define            BS1    0x00008000
  247. #define        ALLDELAY    (NLDELAY|TBDELAY|CRDELAY|VTDELAY|BSDELAY)
  248. #define        CRTBS        0x00010000    /* do backspacing for crt */
  249. #define        PRTERA        0x00020000    /* \ ... / erase */
  250. #define        CRTERA        0x00040000    /* " \b " to wipe out char */
  251. #define        TILDE        0x00080000    /* hazeltine tilde kludge */
  252. #define        MDMBUF        0x00100000    /* start/stop output on carrier intr */
  253. #define        LITOUT        0x00200000    /* literal output */
  254. #define        TOSTOP        0x00400000    /* SIGSTOP on background output */
  255. #define        FLUSHO        0x00800000    /* flush output to terminal */
  256. #define        NOHANG        0x01000000    /* no SIGHUP on carrier drop */
  257. #define        L001000        0x02000000
  258. #define        CRTKIL        0x04000000    /* kill line with " \b " */
  259. #define        PASS8        0x08000000
  260. #define        CTLECH        0x10000000    /* echo control chars as ^X */
  261. #define        PENDIN        0x20000000    /* tp->t_rawq needs reread */
  262. #define        DECCTQ        0x40000000    /* only ^Q starts after ^S */
  263. #define        NOFLSH        0x80000000    /* no output flush on signal */
  264. /* locals, from 127 down */
  265. #define    TIOCLBIS    _IOW('t', 127, int)    /* bis local mode bits */
  266. #define    TIOCLBIC    _IOW('t', 126, int)    /* bic local mode bits */
  267. #define    TIOCLSET    _IOW('t', 125, int)    /* set entire local mode word */
  268. #define    TIOCLGET    _IOR('t', 124, int)    /* get local modes */
  269. #define        LCRTBS        (CRTBS>>16)
  270. #define        LPRTERA        (PRTERA>>16)
  271. #define        LCRTERA        (CRTERA>>16)
  272. #define        LTILDE        (TILDE>>16)
  273. #define        LMDMBUF        (MDMBUF>>16)
  274. #define        LLITOUT        (LITOUT>>16)
  275. #define        LTOSTOP        (TOSTOP>>16)
  276. #define        LFLUSHO        (FLUSHO>>16)
  277. #define        LNOHANG        (NOHANG>>16)
  278. #define        LCRTKIL        (CRTKIL>>16)
  279. #define        LPASS8        (PASS8>>16)
  280. #define        LCTLECH        (CTLECH>>16)
  281. #define        LPENDIN        (PENDIN>>16)
  282. #define        LDECCTQ        (DECCTQ>>16)
  283. #define        LNOFLSH        (NOFLSH>>16)
  284. #define    TIOCSBRK    _IO('t', 123)        /* set break bit */
  285. #define    TIOCCBRK    _IO('t', 122)        /* clear break bit */
  286. #define    TIOCSDTR    _IO('t', 121)        /* set data terminal ready */
  287. #define    TIOCCDTR    _IO('t', 120)        /* clear data terminal ready */
  288. #define    TIOCGPGRP    _IOR('t', 119, int)    /* get pgrp of tty */
  289. #define    TIOCSPGRP    _IOW('t', 118, int)    /* set pgrp of tty */
  290. #define    TIOCSLTC    _IOW('t',117,struct ltchars)/* set local special chars */
  291. #define    TIOCGLTC    _IOR('t',116,struct ltchars)/* get local special chars */
  292. #define    TIOCOUTQ    _IOR('t', 115, int)    /* output queue size */
  293. #define    TIOCSTI        _IOW('t', 114, char)    /* simulate terminal input */
  294. #define    TIOCNOTTY    _IO('t', 113)        /* void tty association */
  295. #define    TIOCPKT        _IOW('t', 112, int)    /* pty: set/clear packet mode */
  296. #define        TIOCPKT_DATA        0x00    /* data packet */
  297. #define        TIOCPKT_FLUSHREAD    0x01    /* flush packet */
  298. #define        TIOCPKT_FLUSHWRITE    0x02    /* flush packet */
  299. #define        TIOCPKT_STOP        0x04    /* stop output */
  300. #define        TIOCPKT_START        0x08    /* start output */
  301. #define        TIOCPKT_NOSTOP        0x10    /* no more ^S, ^Q */
  302. #define        TIOCPKT_DOSTOP        0x20    /* now do ^S ^Q */
  303. #define    TIOCSTOP    _IO('t', 111)        /* stop output, like ^S */
  304. #define    TIOCSTART    _IO('t', 110)        /* start output, like ^Q */
  305. #define    TIOCMSET    _IOW('t', 109, int)    /* set all modem bits */
  306. #define    TIOCMBIS    _IOW('t', 108, int)    /* bis modem bits */
  307. #define    TIOCMBIC    _IOW('t', 107, int)    /* bic modem bits */
  308. #define    TIOCMGET    _IOR('t', 106, int)    /* get all modem bits */
  309. #define    TIOCREMOTE    _IOW('t', 105, int)    /* remote input editing */
  310. #define    TIOCGWINSZ    _IOR('t', 104, struct winsize)    /* get window size */
  311. #define    TIOCSWINSZ    _IOW('t', 103, struct winsize)    /* set window size */
  312. #define    TIOCUCNTL    _IOW('t', 102, int)    /* pty: set/clr usr cntl mode */
  313. #define        UIOCCMD(n)    _IO('u', n)        /* usr cntl op "n" */
  314. #define    TIOCCONS    _IO('t', 98)        /* become virtual console */
  315. #define    TCGETP        _IOR('t', 85,struct termios)/* get parameters */
  316.  
  317. #define    OTTYDISC    0        /* old, v7 std tty driver */
  318. #define    NETLDISC    1        /* line discip for berk net */
  319. #define    NTTYDISC    2        /* new tty discipline */
  320. #define    TABLDISC    3        /* tablet discipline */
  321. #define    SLIPDISC    4        /* serial IP discipline */
  322.  
  323. #define    FIOCLEX        _IO('f', 1)        /* set close on exec on fd */
  324. #define    FIONCLEX    _IO('f', 2)        /* remove close on exec */
  325. /* another local */
  326. #define    FIONREAD    _IOR('f', 127, int)    /* get # bytes to read */
  327. #define    FIONBIO        _IOW('f', 126, int)    /* set/clear non-blocking i/o */
  328. #define    FIOASYNC    _IOW('f', 125, int)    /* set/clear async i/o */
  329. #define    FIOSETOWN    _IOW('f', 124, int)    /* set owner */
  330. #define    FIOGETOWN    _IOR('f', 123, int)    /* get owner */
  331.  
  332. /* socket i/o controls */
  333. #define    SIOCSHIWAT    _IOW('s',  0, int)        /* set high watermark */
  334. #define    SIOCGHIWAT    _IOR('s',  1, int)        /* get high watermark */
  335. #define    SIOCSLOWAT    _IOW('s',  2, int)        /* set low watermark */
  336. #define    SIOCGLOWAT    _IOR('s',  3, int)        /* get low watermark */
  337. #define    SIOCATMARK    _IOR('s',  7, int)        /* at oob mark? */
  338. #define    SIOCSPGRP    _IOW('s',  8, int)        /* set process group */
  339. #define    SIOCGPGRP    _IOR('s',  9, int)        /* get process group */
  340.  
  341. #define    SIOCADDRT    _IOW('r', 10, struct rtentry)    /* add route */
  342. #define    SIOCDELRT    _IOW('r', 11, struct rtentry)    /* delete route */
  343.  
  344. #define    SIOCSIFADDR    _IOW('i', 12, struct ifreq)    /* set ifnet address */
  345. #define    SIOCGIFADDR    _IOWR('i',13, struct ifreq)    /* get ifnet address */
  346. #define    SIOCSIFDSTADDR    _IOW('i', 14, struct ifreq)    /* set p-p address */
  347. #define    SIOCGIFDSTADDR    _IOWR('i',15, struct ifreq)    /* get p-p address */
  348. #define    SIOCSIFFLAGS    _IOW('i', 16, struct ifreq)    /* set ifnet flags */
  349. #define    SIOCGIFFLAGS    _IOWR('i',17, struct ifreq)    /* get ifnet flags */
  350. #define    SIOCGIFBRDADDR    _IOWR('i',18, struct ifreq)    /* get broadcast addr */
  351. #define    SIOCSIFBRDADDR    _IOW('i',19, struct ifreq)    /* set broadcast addr */
  352. #define    SIOCGIFCONF    _IOWR('i',20, struct ifconf)    /* get ifnet list */
  353. #define    SIOCGIFNETMASK    _IOWR('i',21, struct ifreq)    /* get net addr mask */
  354. #define    SIOCSIFNETMASK    _IOW('i',22, struct ifreq)    /* set net addr mask */
  355. #define    SIOCGIFMETRIC    _IOWR('i',23, struct ifreq)    /* get IF metric */
  356. #define    SIOCSIFMETRIC    _IOW('i',24, struct ifreq)    /* set IF metric */
  357. #define SIOCRPHYSADDR   _IOWR('i',28, struct ifdevea)   /* Read phys. 
  358.                              * enet addr.*/
  359. #define    SIOCSARP    _IOW('i', 30, struct arpreq)    /* set arp entry */
  360. #define    SIOCGARP    _IOWR('i',31, struct arpreq)    /* get arp entry */
  361. #define    SIOCDARP    _IOW('i', 32, struct arpreq)    /* delete arp entry */
  362.  
  363. /* Graphics io controls for Ultrix on the DECStation 3100. */
  364. #define QIOCGINFO     _IOR('q', 1, DevScreenInfo *)    /* get the info     */
  365. #define QIOCPMSTATE    _IOW('q', 2, DevCursor)    /* set mouse pos */
  366. #define    QIOWCURSORCOLOR    _IOW('q', 3, unsigned int [6])    /* bg/fg r/g/b */
  367. #define QIOCINIT    _IO('q', 4)            /* init screen   */
  368. #define QIOCKPCMD    _IOW('q', 5, DevKpCmd)    /* keybd. per. cmd */
  369. #define QIOCADDR    _IOR('q', 6, DevScreenInfo *)    /* get address */
  370. #define    QIOWCURSOR    _IOW('q', 7, short[32])    /* write cursor bit map */
  371. #define QIOKERNLOOP    _IO('q', 8)   /*re-route kernel console output */
  372. #define QIOKERNUNLOOP    _IO('q', 9)   /*don't re-route kernel console output */
  373. #define QIOVIDEOON    _IO('q', 10)            /* turn on the video */
  374. #define    QIOVIDEOOFF    _IO('q', 11)            /* turn off the video */
  375. #define QIOSETCMAP      _IOW('q', 12, DevColorMap)
  376. #define QIOISCOLOR    _IOR('q', 13, int)    /* is it a color device? */
  377.  
  378. /* Graphics io controls for Sun frame buffers. */
  379. #define FBIOGTYPE _IOR('F', 0, struct fbtype)        /* get description */
  380. #define FBIOGPIXRECT _IOWR('F', 1, struct fbpixrect)    /* get pixrect */
  381. #define FBIOGINFO _IOR('F', 2, struct fbinfo)        /* get other info */
  382. #define FBIOPUTCMAP _IOW('F', 3, struct fbcmap)        /* set cmap */
  383. #define FBIOGETCMAP _IOW('F', 4, struct fbcmap)        /* get cmap */
  384. #define FBIOSATTR       _IOW('F', 5, struct fbsattr)    /* set attrs */
  385. #define FBIOGATTR       _IOR('F', 6, struct fbgattr)    /* get attrs */
  386. #define FBIOSVIDEO      _IOW('F', 7, int)        /* video control */
  387. #define FBIOGVIDEO      _IOR('F', 8, int)        /* video control */
  388. #define FBIOVERTICAL    _IOW('F', 9, int)        /* vert. retrace */
  389.  
  390. extern int ioctl _ARGS_((int fd, unsigned long cmd, ...));
  391.  
  392. #endif _IOCTL
  393. @
  394.  
  395.  
  396. 1.11.1.1
  397. log
  398. @Initial branch for Sprite server.
  399. @
  400. text
  401. @d7 1
  402. a7 1
  403.  * $Header: /sprite/src/lib/include/sys/RCS/ioctl.h,v 1.11 91/08/19 22:24:56 shirriff Exp $
  404. @
  405.  
  406.  
  407. 1.10
  408. log
  409. @Add a function prototype for ioctl().
  410. @
  411. text
  412. @d7 1
  413. a7 1
  414.  * $Header$
  415. d237 1
  416. a310 1
  417.  
  418. @
  419.  
  420.  
  421. 1.9
  422. log
  423. @Tweak comment for SIOCRPHYSADDR.
  424. @
  425. text
  426. @d7 1
  427. d24 2
  428. d312 1
  429. a312 3
  430.  
  431.  
  432.  
  433. @
  434.  
  435.  
  436. 1.8
  437. log
  438. @Added an ioctl for decstations to see if they've got color displays.
  439. @
  440. text
  441. @d275 2
  442. a276 1
  443. #define SIOCRPHYSADDR   _IOWR('i',28, struct ifdevea)   /* Read phy. ad.*/
  444. @
  445.  
  446.  
  447. 1.7
  448. log
  449. @Added ioctl stuff for /dev/fb.
  450. @
  451. text
  452. @d293 1
  453. @
  454.  
  455.  
  456. 1.6
  457. log
  458. @Fixed bug with previous addition of SIOCRPHYSADDR.
  459. @
  460. text
  461. @d19 4
  462. d293 17
  463. @
  464.  
  465.  
  466. 1.5
  467. log
  468. @Added SIOCRPHYSADDR.  It is used by verilog.
  469. @
  470. text
  471. @d271 1
  472. a271 1
  473. #define SIOCRPHYSADDR   _IOWR(i,28, struct ifdevea)     /* Read phy. ad.*/
  474. @
  475.  
  476.  
  477. 1.4
  478. log
  479. @Ds3100 changes.
  480. @
  481. text
  482. @d271 1
  483. a271 1
  484.  
  485. @
  486.  
  487.  
  488. 1.3
  489. log
  490. @Make lint work (the _IO macros must produce "int"s).
  491. @
  492. text
  493. @d276 14
  494. @
  495.  
  496.  
  497. 1.2
  498. log
  499. @Add ifdefs to prevent files from being included multiple times.
  500. @
  501. text
  502. @d98 3
  503. a100 3
  504. #define    _IO(x,y)    (IOC_VOID|(x<<8)|y)
  505. #define    _IOR(x,y,t)    (IOC_OUT|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y)
  506. #define    _IOW(x,y,t)    (IOC_IN|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y)
  507. d102 1
  508. a102 1
  509. #define    _IOWR(x,y,t)    (IOC_INOUT|((sizeof(t)&IOCPARM_MASK)<<16)|(x<<8)|y)
  510. @
  511.  
  512.  
  513. 1.1
  514. log
  515. @Initial revision
  516. @
  517. text
  518. @d9 4
  519. a12 9
  520. /*
  521.  * Ioctl definitions
  522.  */
  523. #ifndef    _IOCTL_
  524. #define    _IOCTL_
  525. #ifdef KERNEL
  526. #include "ttychars.h"
  527. #include "ttydev.h"
  528. #else
  529. d14 2
  530. d19 4
  531. d276 1
  532. a276 1
  533. #endif
  534. @
  535.